CREATE TABLE [dbo].[TTDEST_VENT]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_DEST] [dbo].[TD_VC_003] NOT NULL,
[DE_DEST] [dbo].[TD_VC_100] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTDEST_VE__FE_US__3429BB53] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTDEST_VE__FE_US__351DDF8C] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDEST_VENT] ADD CONSTRAINT [TTDEST_VENT_18546296501] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_DEST]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDEST_VENT] ADD CONSTRAINT [FK1_TMPARA_CONT_A_TTCODE_VENT] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_CONT] ([CO_EMPR])
GO
